package thread2;

public class Demo2 {
    public int count = 0;

    public void increase(){
        synchronized (this){
            count++;
        }
    }

    public void increase2(){
        synchronized (Demo2.class){
            count++;
        }
    }
}
